package cc3002;
import java.io.*;

public class TamagotchiFoodTestClass {
	
	static public void main(String[] args)throws IOException{
		U.println("***Clase de prueba de Food***");
		String name=U.readLine("Ingrese el nombre de su Tamagotchi: ");
		U.println("");
		Tamagotchi tama=new Tamagotchi(name);
		tama.viewStatistics();
		int selection;
		Food food;
		while(true){
			selection=Integer.parseInt(U.readLine("Con que desea alimentar a su tamagotchi?\n (1)Deadly Rib (2)Mysterious Sandwich (3)Vitamin (4)Weird Food (0)Salir: "));
			if(selection==0)break;
			switch(selection){
			case 0: 
				food=new Food();
				break;
			case 1: 
				food=new DeadlyRib();
				break;
			case 2:
				food=new MysteriousSandwich();
				break;
			case 3:
				food=new Vitamin();
				break;
			case 4:
				food=new WeirdFood();
				break;
			case 5:
				food=new Food();
				break;
			default: food=new Food();
			}
			U.println("");
			tama.eat(food);
			tama.viewStatistics();
			//U.println(tama.foodSaver);
		}
		U.println("***FIN de la Clase de prueba de Food***");

	}

}
